package com.codi.bus.core.dao;

import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.PortfolioTradeAcco;

import java.util.List;

/**
 * @Author: zengxl
 * @Description:
 * @Date: 2018/4/27 11:43
 */
public interface PortfolioTradeAccoDao extends GeneratedBaseDao<PortfolioTradeAcco> {
    List<PortfolioTradeAcco> selectByPortfolioCode(PortfolioTradeAcco portfolioTradeAcco);

    List<PortfolioTradeAcco> selectByPortfolioTradeAccount(PortfolioTradeAcco portfolioTradeAcco);

    /**
     * 根据用户id查询PortfolioTradeAcco
     *
     * @param userId
     * @return
     */
    List<PortfolioTradeAcco> selectPortfolioTradeAccoByUserId(Long userId);

    /**
     * 根据用户id和组合编码查询组合交易信息
     *
     * @param userId
     * @param portfolioCode
     * @return
     */
    PortfolioTradeAcco selectByUserIdAndPortfolioCode(Long userId, String portfolioCode);
}
